<script setup lang='ts'>
       import { useCounterStore } from '@/stores/counter'
       const store = useCounterStore()
</script>
       
<template>
 <div>
    <view>计数: {{ store.count }}</view>
<view>双倍: {{ store.double }}</view>
<button @click="store.increment()">加1</button>
<button @click="store.decrement()">减1</button>
 </div>
</template>
       
<style scoped>
       
</style>